﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QbservableCore.Serialization
{
    /// <summary>
    /// The information about an Qbservable target
    /// </summary>
    public class QbservableMetadata
    {
        public QbservableMetadata(string targetKey, Type genericType)
        {
            TargetKey = targetKey;
            GenericType = genericType;
        }

        /// <summary>
        /// Gets or sets the target key which represents the Observable logical name.
        /// </summary>
        /// <value>
        /// The target key.
        /// </value>
        public string TargetKey { get; private set; }

        /// <summary>
        /// Gets or sets the type of the generic.
        /// </summary>
        /// <value>
        /// The type of the generic.
        /// For Example for Observable<int> the return value should be int.
        /// </value>
        public Type GenericType { get; private set; }
    }
}
